<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <mark>不借助css和js让字有背景颜色</mark>
    <p>下标：h<sub>2</sub>o</p>
    <p>上标：X<sup>2</sup></p>

</body>
</html>